package com.interauto.Dao.entity;

import java.util.Date;

/**
 * 接口运行表
 */
public class Interunt {
    private int id;
    /**
     * 所关联的运行用例ID
     */
    private Integer caseruntid;
    /**
     * 接口名称
     */
    private String interfacename;
    /**
     * 运行成功状态，0=ok,=其它就是fail。对应的就是各种异常类型的code
     */
    private Integer status;
    /**
     * 接口跑完后的信息
     */
    private String message;
    /**
     * 接口类型 1=http,2=rpc,3=sql,4=redis
     */
    private Integer intercasetype;
    /**
     * 断言信息
     */
    private String autoassinfo;

    /**
     * 访问的URL
     */
    private String httpurl;
    /**
     * 请求方式 1=get 2=post
     */
    private Integer httpmeth;
    private String httpheader;
    private String httpcookie;
    /**
     * 如果是post，对应的请求参数类型
     * 1=json,2=x-www-from
     */
    private Integer postparamtype;
    /**
     * 请求参数
     */
    private String httpparam;
    private Integer rescode;
    private String resheader;
    private String rescookie;
    private Integer restype;
    private String resinfo;
    private Date createtime;



    public Integer getHttpmeth() {
        return httpmeth;
    }

    public void setHttpmeth(Integer httpmeth) {
        this.httpmeth = httpmeth;
    }


    @Override
    public String toString() {
        return "Interunt{" +
                "id=" + id +
                ", caseruntid=" + caseruntid +
                ", interfacename='" + interfacename + '\'' +
                ", status=" + status +
                ", message='" + message + '\'' +
                ", intercasetype=" + intercasetype +
                ", autoassinfo='" + autoassinfo + '\'' +
                ", httpurl='" + httpurl + '\'' +
                ", httpmeth=" + httpmeth +
                ", httpheader='" + httpheader + '\'' +
                ", httpcookie='" + httpcookie + '\'' +
                ", postparamtype=" + postparamtype +
                ", httpparam='" + httpparam + '\'' +
                ", rescode=" + rescode +
                ", resheader='" + resheader + '\'' +
                ", rescookie='" + rescookie + '\'' +
                ", restype=" + restype +
                ", resinfo='" + resinfo + '\'' +
                ", createtime=" + createtime +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Integer getCaseruntid() {
        return caseruntid;
    }

    public void setCaseruntid(Integer caseruntid) {
        this.caseruntid = caseruntid;
    }

    public String getInterfacename() {
        return interfacename;
    }

    public void setInterfacename(String interfacename) {
        this.interfacename = interfacename;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getIntercasetype() {
        return intercasetype;
    }

    public void setIntercasetype(Integer intercasetype) {
        this.intercasetype = intercasetype;
    }

    public String getAutoassinfo() {
        return autoassinfo;
    }

    public void setAutoassinfo(String autoassinfo) {
        this.autoassinfo = autoassinfo;
    }

    public String getHttpurl() {
        return httpurl;
    }

    public void setHttpurl(String httpurl) {
        this.httpurl = httpurl;
    }

    public String getHttpheader() {
        return httpheader;
    }

    public void setHttpheader(String httpheader) {
        this.httpheader = httpheader;
    }

    public String getHttpcookie() {
        return httpcookie;
    }

    public void setHttpcookie(String httpcookie) {
        this.httpcookie = httpcookie;
    }

    public Integer getPostparamtype() {
        return postparamtype;
    }

    public void setPostparamtype(Integer postparamtype) {
        this.postparamtype = postparamtype;
    }

    public String getHttpparam() {
        return httpparam;
    }

    public void setHttpparam(String httpparam) {
        this.httpparam = httpparam;
    }

    public Integer getRescode() {
        return rescode;
    }

    public void setRescode(Integer rescode) {
        this.rescode = rescode;
    }

    public String getResheader() {
        return resheader;
    }

    public void setResheader(String resheader) {
        this.resheader = resheader;
    }

    public String getRescookie() {
        return rescookie;
    }

    public void setRescookie(String rescookie) {
        this.rescookie = rescookie;
    }

    public Integer getRestype() {
        return restype;
    }

    public void setRestype(Integer restype) {
        this.restype = restype;
    }

    public String getResinfo() {
        return resinfo;
    }

    public void setResinfo(String resinfo) {
        this.resinfo = resinfo;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }
}
